package com.joven.core.constant;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author joven_wong
 * 2021/6/29 10:14
 */
@Data
@Component
public class ZkProperties {
    @Value("${zookeeper.connection.zkServer}")
    private String uri;
    @Value("${zookeeper.curator.sessionTimeoutMs}")
    private Integer sessionTimeoutMs;
    @Value("${zookeeper.curator.connectionTimeoutMs}")
    private Integer connectionTimeoutMs;
    @Value("${zookeeper.curator.baseSleepTimeMs}")
    private Integer baseSleepTimeMs;
    @Value("${zookeeper.curator.maxRetries}")
    private Integer maxRetries;
}
